package com.xiangxiao.rpan.authority.dao;

import com.xiangxiao.rpan.authority.dto.ModuleQueryDto;
import com.xiangxiao.rpan.authority.dto.ModuleTreeParam;
import com.xiangxiao.rpan.authority.model.AuthModuleInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/3/29 14:35
 */
public interface ModuleMapper {
  List<ModuleQueryDto> queryModuleListByModuleTreeParam(ModuleTreeParam moduleTreeParam);

  /**
   * 查询登录用户的权限
   *
   * @param moduleIds
   * @return
   */
  List<AuthModuleInfo> findAuthorityInfos(@Param("moduleIds") List<Long> moduleIds);
}
